package com.ccb.sc.common.modules.common.convert;

import com.ccb.sc.common.modules.common.entity.District;
import com.ccb.sc.common.modules.common.vo.DistrictVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author Ken
 */
@Mapper
public interface DistrictConvert {

    DistrictConvert INSTANCE = Mappers.getMapper(DistrictConvert.class);

    DistrictVo entity2Vo(District entity);

    List<DistrictVo> entity2ListVo(List<District> entity);


}
